<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>商品详情</title>
    <link rel="stylesheet" type="text/css" href="jsp/ddym.css"/>
    <link rel="stylesheet" type="text/css" href="jsp/spxq.css"/>
    <script src="jsp/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="jsp/gsjs.js" type="text/javascript" charset="utf-8"></script>
    <script src="jsp/jquery.min.js"></script>
    <script src="jsp/distpicker.data.js" type="text/javascript" charset="utf-8"></script>
    <script src="jsp/distpicker.js" type="text/javascript" charset="utf-8"></script>

    <script src="jsp/es6-shim.min.js"></script>
    <script src="jsp/jquery-3.3.1.min.js"></script>
    <script src="jsp/jquery.transit.min.js"></script>
    <script src="jsp/easyhelper.min.js"></script>
    <link rel="stylesheet" href="jsp/easyhelper.min.css">
    <link href="jsp/css/bases.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="jsp/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="jsp/js/jquery.jqzoom.js"></script>
    <script type="text/javascript" src="jsp/js/bases.js"></script>
    <style type="text/css">
        .hover {
            border: 2px solid red;
            margin-left: 8px;
            margin-right: 8px;
            margin-top: 0px;
        }

        #cube {
            width: 150px;
            height: 150px;
            border: 1px solid #000000;
            background-color: #FFFFFF;
            opacity: 0.3;
            display: none;
        }
    </style>
</head>
<body>
<div id="top">
    <div id="topz">
        <div id="top1">
            <img src="jsp/YNIK%7BT%60J8AT~PQ(8LL9QPJR.png">
        </div>
        <div id="top2">
            <a href="/jumpindex" id="top21">集市首页</a>
        </div>
        <div id="top3">
            <span>欢迎来到本集市，开启新鲜水果之旅！</span>
        </div>
        <div id="top4" style="width: 100px;margin-left: 300px">
            <#if userInfo??>
            <a href="login.html" id="top41">你好;${userInfo.username};${userInfo.getUserid()}
                <input id="userid" value="${userInfo.getUserid()}" type="text" style="display: none">
            </a>
            <#else>
            <a href="login.html" id="top41">请登录</a>
        </
        #if>
    </div>

    <div id="top5">
        <a href="register.html" id="top51">免费注册</a>
    </div>
    <div id="top6">
        <a href="/jumpmygoods" id="top61">我的订单</a>
    </div>
    <div id="top7">
        <a href="" id="top71">商家支持</a>
    </div>
    <div id="top8">
        <a href="" id="top81" onmouseover="over()" onmouseout="out()">网站导航</a>
    </div>
    <div id="top9" onmouseover="over()" onmouseout="out()">
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
        <div id="wzdh1">
            <a href="蔬果集市帮助中心.html" id="wzdh11">帮助中心</a>
        </div>
    </div>
</div>
</div>

<div id="banner">
    <div id="banner1">
        <div id="logo">
            <a href="/jumpindex"><img src="jsp/731.jpg"></a>
        </div>
        <div id="tt" style="width: 140px;height: 38px;float: left">
            <a href="/jumpindex" id="tit">蔬果集市</a>
        </div>
        <div id="banner2"
             style="width: 488px;height: 38px;float: left;background-color: red;line-height: 38px;margin-left: 80px">
            <form action="http://www.baidu.com/s" method="get">
                <input type="text" name="wd" id="banner3" value="" size="60" placeholder="搜索蔬果集市 水果/品牌/店铺"/>
                <input type="submit" id="banner4" value="搜索"/>
            </form>
        </div>
    </div>
</div>


<div id="dpjj">
    <div id="dpjj1">
				<span id="dpjj2">
					南野田园  红心火龙果  金都一号  新鲜水果  精选5斤 【中果】
				</span>
        <div id="dpjj3">
            <img src="jsp/dp.png" style="width: 18px;height: 18px;">
        </div>
        <a href="" id="dpjj4">联系客服</a>
    </div>
</div>
<div id="dt">
    <div id="dt1">
        <div id="fdj"
             style="width: 500px;height: 500px;border: 1px solid #000000;float: left;margin-top: 40px;position: relative;">
            <div id="preview" class="spec-preview" style="margin: auto"><span class="jqzoom"><img
                    jqimg="jsp/images/b1.jpg" src="jsp/images/s1.jpg"/></span></div>
            <!--缩图开始-->
            <div class="spec-scroll" style="margin: auto"><a class="prev">&lt;</a> <a class="next">&gt;</a>
                <div class="items">
                    <ul>
                        <li><img alt="佳能" bimg="jsp/images/b1.jpg" src="jsp/images/s1.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b2.jpg" src="jsp/images/s2.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b3.jpg" src="jsp/images/s3.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b1.jpg" src="jsp/images/s1.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b3.jpg" src="jsp/images/s3.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b1.jpg" src="jsp/images/s1.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b2.jpg" src="jsp/images/s2.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b1.jpg" src="jsp/images/s1.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b2.jpg" src="jsp/images/s2.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b2.jpg" src="jsp/images/s2.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b1.jpg" src="jsp/images/s1.jpg" onmousemove="preview(this);">
                        </li>
                        <li><img alt="佳能" bimg="jsp/images/b2.jpg" src="jsp/images/s2.jpg" onmousemove="preview(this);">
                        </li>
                    </ul>
                </div>
            </div>
            <!--缩图结束-->
        </div>

        <div id="fd"
             style="width: 600px; height: 600px;border: 1px solid #000000;float: left;position: absolute;margin: 40px 0px 0px 500px;background-color: #FFFFFF;display: none;">
            <img class="fdp" src="" style="width: ;">
        </div>


        <div id="dt2">
            <h2 style="color: #6D6D6D;font-size: 20px;" name="${goodsInfo1.goodsid *10 +1}">${goodsInfo1.goodsname}</h2>
            <span style="font-size: 14px;color: red;" name="${goodsInfo1.goodsid *10 +1}">${goodsInfo1.goodsdesc}</span>
            <span style="font-size: 14px;color: red;display: none" name="${goodsInfo1.goodsid *10 +1}">${goodsInfo1.goodsid}</span>
            <a href="" style="font-size: 14px;">查看></a>
            <div id="dt3">
                <img src="jsp/mx.png" style="width: 40px;height: 40px;margin: 5px;display: block;float: left;">
                <span style="display: block;float: left;line-height: 50px;color: #FFFFFF;margin-left: 10px;font-size: 20px;">限时秒杀</span>
                <div id="" style="width: 220px;height: 40px;float: left;margin-left: 330px;margin-top: 5px;">
                    <span style="display: block;float: left;line-height: 40px;color: #FFFFFF;margin-left: 10px;font-size: 16px;">限时秒杀：</span>
                    <div id=""
                         style="text-align: center;width: 30px;line-height: 30px;height: 30px;background-color: #000000;float: left;margin-top: 5px;">
								<span id="h" style="color: #FFFFFF;font-size: 20px;">

								</span>
                    </div>
                    <span style="display: block;float: left;line-height: 40px;color: #FFFFFF;font-size: 16px;">：</span>
                    <div id=""
                         style="text-align: center;width: 30px;line-height: 30px;height: 30px;background-color: #000000;float: left;margin-top: 5px;">
								<span id="m" style="color: #FFFFFF;font-size: 20px;">

								</span>
                    </div>
                    <span style="display: block;float: left;line-height: 40px;color: #FFFFFF;font-size: 16px;">：</span>
                    <div id=""
                         style="text-align: center;line-height: 30px; width: 30px;height: 30px;background-color: #000000;float: left;margin-top: 5px;">
								<span id="se" style="color: #FFFFFF;font-size: 20px;">

								</span>
                    </div>
                </div>
            </div>
            <div id="dt4">
                <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 20px;">集市价：</span>
                <span style="color: red; font-size: 18px;">￥</span>
                <span style="color: red; font-size: 30px;"
                      name="${goodsInfo1.goodsid *10 +1}">${goodsInfo1.goodsprice}</span>
                <a href="" style="text-decoration: none;font-family: '楷体';margin-left: 10px;font-size: 16px;">降价通知</a>
                <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 300px;">累计评价</span>
                <a href="" style="font-size: 20px; color: #007AFF;text-decoration: none;"><span id="w">1.5万+</span></a>


                <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 20px;display: block;float: left;margin-top: 20px;">优惠券：</span>
                <div id=""
                     style="width: 160px; height: 30px; float: left;border: 1px solid red;text-align: center;line-height: 30px;margin-top: 14px;">
                    <span style="color: red; font-size: 18px;font-family: '楷体';">满30减5元</span>
                </div>

                <span style="clear: both; color: #949494; font-size: 18px;font-family: '楷体';margin-left: 20px;display: block;margin-top: 20px;float: left;">促   销：</span>
                <div id=""
                     style="width: 40px; height: 20px; float: left;border: 1px solid red;text-align: center;line-height: 20px;margin-top: 20px;">
                    <span style="color: red; font-size: 16px;font-family: '楷体';">限购</span>
                </div>
                <span style="color: #444444; font-size: 16px;font-family: '楷体';display: block;float: left;margin-top: 22px;">
							购买不超过200件时享受单件价￥23.80，超出数量以结算价为准</span>
            </div>
            <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 20px;display: block;float: left;margin-top: 20px;">配送至：</span>
            <div data-toggle="distpicker">
                <select id="s" style="margin-top: 20px;"></select>
                <select id="j"></select>
                <select id="x"></select>
            </div>
            <div id="">
                <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 20px;display: block;float: left;margin-top: 20px;">选择种类：</span>
                <div id="dt5">
                    <img src="${goodsInfo1.goodspic}"
                         style=";display: block;float: left;width: 40px; height: 40px;margin-top: 5px;margin-left: 10px;"
                         name="${goodsInfo1.goodsid *10 +1}">
                    <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 4px;display: block;float: left;">500克装</span>
                </div>

                <div id="dt6">
                    <img src="${goodsInfo1.goodspic}"
                         style=";display: block;float: left;width: 40px; height: 40px;margin-top: 5px;margin-left: 10px;">
                    <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 4px;display: block;float: left;">1000克装</span>
                </div>

                <div id="dt7">
                    <img src="${goodsInfo1.goodspic}"
                         style=";display: block;float: left;width: 40px; height: 40px;margin-top: 5px;margin-left: 10px;">
                    <span style="color: #949494; font-size: 18px;font-family: '楷体';margin-left: 4px;display: block;float: left;">1500克装</span>
                </div>
            </div>
            <div id="" style="clear: both; margin-top: 20px;width: 200px; height: 80px;margin-left: 20px;float: left;">
                <span style="color: #949494; font-size: 18px;font-family: '楷体';display: block;float: left;">购买数量：</span>
                <div style="width: 70px;height: 40px;float: left">
                    <div style="width: 46px;height: 30px;;border: 1px solid black;float: left;text-align: center;line-height: 30px">
                        <span id="num" name="${goodsInfo1.goodsid *10 +1}"></span>
                    </div>
                    <div style="width: 18px;height: 32px;float: left;margin-left: 4px">
                        <img onclick="add()" src="jsp/up.png"
                             style="width: 16px;height: 12px;display: block;border: 1px solid black"></img>
                        <img onclick="sub()" src="jsp/down.png"
                             style="width: 16px;height: 12px;display: block;border: 1px solid black;margin-top: 4px"></img>
                    </div>
                </div>

            </div>
            <div class="wrapper" style="float: left;float: left;margin-left: 200px;width: 200px;height: 80px;">
                <button class="helper-button-info" id="dialog-success" style="background-color: red;border: 1px solid red;
								margin-top: 20px; margin-left: 15px;width: 80px;height: 40px;"
                        name="${goodsInfo1.goodsid}" onclick="buygoods(this)">立即抢购
                </button>
            </div>

        </div>
        <div id="" style="width: 200px;height: 570px;float: left;margin-left: 56px;margin-top: 2px;">

            <div id="">
                <img src="jsp/dt1.png">
            </div>
            <div id="" style="text-align: center;">
                <span style="font-size: 12px;text-align: center;color: #595959;"> 果迎新 红心火龙果 5个</span>
            </div>
            <div id="" style="text-align: center;">
                <span style="font-size: 16px;text-align: center;color: red;">￥24.90</span>
            </div>

            <div id="">
                <img src="jsp/dt2.png">
            </div>
            <div id="" style="text-align: center;">
                <span style="font-size: 12px;text-align: center;color: #595959;"> 果迎新 红心火龙果 5个</span>
            </div>
            <div id="" style="text-align: center;">
                <span style="font-size: 16px;text-align: center;color: red;">￥19.90</span>
            </div>

            <div id="">
                <img src="jsp/dt3.png">
            </div>
            <div id="" style="text-align: center;">
                <span style="font-size: 12px;text-align: center;color: #595959;"> 果迎新 红心火龙果 5个</span>
            </div>
            <div id="" style="text-align: center;">
                <span style="font-size: 16px;text-align: center;color: red;">￥20.60</span>
            </div>


        </div>

        <div id="dt8">
            <!--            <div id="dt11" onmouseover="dt1()">-->
            <!--                <img class="dt11p" src="${goodsInfo1.goodspic}" style="width: 80px;height: 80px;" id="dt111">-->
            <!--            </div>-->
        </div>
        <div id="dt9">
            <div id="dt15">
                商品介绍
            </div>
            <div id="dt16">
                规格与包装
            </div>
            <div id="dt17">
                售后保障
            </div>
            <div id="dt18">
                商品评价
            </div>
        </div>
        <div id="dt19">

            <div id="" style="color: #6f6f6f; width: 100px;height: 20px;text-align: left;margin: 30px 0px 20px 75px;">
                <span style="font-size: 12px;">品牌：果迎新</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 75px;float: left;">
                <span style="font-size: 12px;">商品名称：果迎新 红心火龙果5个</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">商品编号：29664419278</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">商品毛重：1.8kg</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">商品产地：中国大陆</span>
            </div>

            <div id=""
                 style="clear: both; color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 75px;float: left;">
                <span style="font-size: 12px;">类别：红心火龙果</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">重量：1000-1999g</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">热卖时间：1、2、3、12月</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">包装：简装</span>
            </div>

            <div id=""
                 style="clear: both; color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 75px;float: left;">
                <span style="font-size: 12px;">原产地：海南</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">售卖方式：单品</span>
            </div>
            <div id=""
                 style="color: #6f6f6f; width: 300px;height: 20px;text-align: left;margin: 0px 0px 15px 50px;float: left;">
                <span style="font-size: 12px;">国产/进口：国产</span>
            </div>

        </div>
        <div id="dt20">
            <img style="width:auto;height:auto;max-width:100%;display: block;margin: auto;" class=""
                 src="//img10.360buyimg.com/imgzone/jfs/t1/89251/38/4120/131619/5de4deb1E6d82f29b/901ce329d4012f49.jpg">
            <img style="width:auto;height:auto;max-width:100%;display: block;margin: auto;" class=""
                 src="//img10.360buyimg.com/imgzone/jfs/t1/106833/13/4028/139691/5de4deb1E894f5055/827bde01cd415ed5.jpg">
            <img style="width:auto;height:auto;max-width:100%;display: block;margin: auto;" class=""
                 src="//img10.360buyimg.com/imgzone/jfs/t1/106501/13/4064/104807/5de4deb3E8fd749be/991c4e54bf68843d.jpg">
            <img style="width:auto;height:auto;max-width:100%;display: block;margin: auto;" class=""
                 src="//img10.360buyimg.com/imgzone/jfs/t1/54919/32/16663/153894/5de4deb2E2a6f2ce1/843e1305311d47b4.jpg">
            <img style="width:auto;height:auto;max-width:100%;display: block;margin: auto;" class=""
                 src="//img10.360buyimg.com/imgzone/jfs/t1/97667/30/4099/119154/5de4deb2Eb68d3f90/de31d5b6a729e9ac.jpg">
        </div>
    </div>
</div>


<br>
<br>
<br>
<br>
<br>
<br>

<div id="di">

    <div id="bottom">
        <div id="bottom1">

        </div>
        <div id="bottom2">
            <div id="bottom21">
                <br>
                <br>
                <span><a href="" class="bm1 gg"><b style="font-size: 14px;">购物指南</b></a></span><br>
                <br>
                <br>
                <span><a href="" class="bm11 gg1">购物流程</a></span><br>
                <br>
                <span><a href="" class="bm12 gg1">会员介绍</a></span><br>
                <br>
                <span><a href="" class="bm13 gg1">生活旅行</a></span><br>
                <br>
                <span><a href="" class="bm14 gg1">常见问题</a></span><br>
                <br>
                <span><a href="" class="bm15 gg1">联系客服</a></span><br>
            </div>
            <div id="bottom22">
                <br>
                <br>
                <span><a href="" class="bm2 gg"><b style="font-size: 14px;">配送方式</b></a></span><br>
                <br>
                <br>
                <span><a href="" class="bm21 gg1">上门自提</a></span><br>
                <br>
                <span><a href="" class="bm22 gg1">211限时达</a></span><br>
                <br>
                <span><a href="" class="bm23 gg1">配送服务查询</a></span><br>
                <br>
                <span><a href="" class="bm24 gg1">配送费收取标准</a></span><br>
                <br>
                <span><a href="" class="bm25 gg1">海外配送</a></span><br>
            </div>
            <div id="bottom23">
                <br>
                <br>
                <span><a href="" class="bm3 gg"><b style="font-size: 14px;">支付方式</b></a></span><br>
                <br>
                <br>
                <span><a href="" class="bm31 gg1">货到付款</a></span><br>
                <br>
                <span><a href="" class="bm32 gg1">在线支付</a></span><br>
                <br>
                <span><a href="" class="bm33 gg1">分期付款</a></span><br>
                <br>
                <span><a href="" class="bm34 gg1">公司转账</a></span><br>
            </div>
            <div id="bottom24">
                <br>
                <br>
                <span><a href="" class="bm4 gg"><b style="font-size: 14px;">售后服务</b></a></span><br>
                <br>
                <br>
                <span><a href="" class="bm41 gg1">售后政策 </a></span><br>
                <br>
                <span><a href="" class="bm42 gg1">价格保护 </a></span><br>
                <br>
                <span><a href="" class="bm43 gg1">退款说明 </a></span><br>
                <br>
                <span><a href="" class="bm44 gg1">返修/退换货 </a></span><br>
                <br>
                <span><a href="" class="bm45 gg1">取消订单</a></span><br>
            </div>
            <div id="bottom25">
                <br>
                <br>
                <span><a href="" class="bm5 gg"><b style="font-size: 14px;">特色服务</b></a></span><br>
                <br>
                <br>
                <span><a href="" class="bm51 gg1">夺宝岛 </a></span><br>
                <br>
                <span><a href="" class="bm52 gg1">DIY装机 </a></span><br>
                <br>
                <span><a href="" class="bm53 gg1">延保服务 </a></span><br>
                <br>
                <span><a href="" class="bm54 gg1"></a></span><br>
                <span><a href="" class="bm55 gg1"></a></span><br>
            </div>
        </div>
        <div id="bottom3">

        </div>
    </div>
</div>


</body>
<script type="text/javascript">
    function go() {
        var x = new Date();
        var h = x.getHours();
        var m = x.getMinutes();
        var s = x.getSeconds();
        var sum = (23 - h) * 60 * 60 + (59 - m) * 60 + 60 - s;
        var xh = Math.floor(sum / 3600);
        var xm = Math.floor(sum / 60 - xh * 60);
        var xs = sum - xh * 3600 - xm * 60;
        document.getElementById("h").innerHTML = xh;
        document.getElementById("m").innerHTML = xm;
        document.getElementById("se").innerHTML = xs;
    }

    window.setInterval(go, 1000);

    document.getElementById("num").innerHTML = 1;

    function sub() {
        var x = document.getElementById("num").innerHTML;
        if (x > 1) {
            x -= 1;
        } else {
            x = 1;
        }
        document.getElementById("num").innerHTML = x;
    }

    function add() {
        var x = document.getElementById("num").innerHTML;
        x = Number(x) + 1;
        document.getElementById("num").innerHTML = x;
    }

    $("#dialog-success").on("click", function () {
        Helper.ui.dialogSuccess("成功加入购物车", "您可以去购物车结算");
    })
    document.getElementById("fdj").onmousemove = function () {
        var x = document.getElementById("cube");
        var y = document.getElementById("fd");
        x.style.display = 'block';
        y.style.display = 'block';
        x.style.position = 'absolute';
        x.style.left = event.offsetX + "px";
        x.style.top = event.offsetY + "px";
    }
    document.getElementById("fdj").onmouseleave = function () {
        var x = document.getElementById("cube");
        var y = document.getElementById("fd");
        x.style.display = 'none';
        y.style.display = 'none';
    }

    function buygoods(n) {
        var x = n.name;
        var y = document.getElementsByName(x * 10 + 1);
        var goodsname = y[0].innerHTML;
        var goodsdesc = y[1].innerHTML;
        var goodsid = y[2].innerHTML;
        var goodsprice = y[3].innerHTML;
        var goodspic = y[4].innerHTML;
        var goodscount = y[5].innerHTML;
        $.ajax({
            url: ("/buygoods"),
            type: "post",
            data: {
                goodsid: goodsid,
                goodscount: goodscount,
                goodsname: goodsname,
                goodsprice: goodsprice,
                goodspic: goodspic,
                goodsdesc: goodsdesc
            },
            dataType: "text",
            success: function (data) {
                if (data == "立即购买") {
                    location.assign("/jumpnowbuy")
                }
            }
        })
    }
</script>
</html>